<template>
  <el-button :size="size" :type="type" class="admin-link">
    <router-link :to="to">{{ text }}</router-link>
  </el-button>
</template>

<script>
export default {
  name: 'AdminLink',
  props: {
    to: {
      type: String,
      required: true,
    },
    text: {
      type: String,
      required: true,
    },
    size: {
      type: String,
      default: 'small',
    },
    type: {
      type: String,
      default: 'primary',
    },
  },
}
</script>
